package iotwisp.school.device.service;

import iotwisp.base.orm.BaseDao;
import iotwisp.school.device.entity.Device;
import iotwisp.school.device.qo.DeviceQO;
import org.hibernate.Criteria;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DeviceService extends BaseDao<Device, DeviceQO> {

    @Override
    protected Criteria buildCriteria(Criteria criteria, DeviceQO qo) {
        return criteria;
    }

    @Override
    protected Class<Device> getEntityClass() {
        return Device.class;
    }
}
